import { JumpType, BannerType } from '@/enum/banner'
/**跳转类型options */
export const jumpTypeOptions = [
  {
    label: '内部链接',
    value: JumpType.内部链接,
  },
  {
    label: '跳转外部链接',
    value: JumpType.跳转外部链接,
  },
  {
    label: '跳转小程序',
    value: JumpType.跳转小程序,
  },
  {
    label: '无跳转',
    value: JumpType.无跳转,
  },
]

/**
 * banner跳转内部地址
 */
export const jumpUrlOptions = [
  { label: '分类', value: '/pages/cate/cate' },
  { label: '首页', value: '/pages/index/index' },
  { label: '我的', value: '/pages/my/my' },
  { label: '购物车', value: '/pages/car2/car2' },
  { label: '优惠券海洋', value: '/pages/myCoupon/myCoupon' },
  { label: 'N元N件', value: '/pages/n_y_n_j/n_y_n_j?id=' },
  { label: '秒杀活动', value: '/pages/flashSale/flashSale' },
  { label: '商品详情', value: '/pages/goodsDetail/goodsDetail?id=' }, //固定在最后一位，banner新建里做了判断
]

export const bannerTypeOptions = [
  {
    label: '限时秒杀',
    value: BannerType.限时秒杀,
  },
  {
    label: '分类',
    value: BannerType.分类,
  },
  {
    label: '限时折扣',
    value: BannerType.限时折扣,
  },
  {
    label: '满减活动',
    value: BannerType.满减活动,
  },
  {
    label: 'N元N件',
    value: BannerType.N元N件,
  },
]
